package com.yvan.leto.server.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yvan.leto.server.domain.ProjectHead;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ProjectHeadMapper extends BaseMapper<ProjectHead> {

    int insertOrUpdate(ProjectHead head);

    String selectReleaseUnit(@Param("env") String env, @Param("project") String project);

    List<Map<String, Object>> selectSummary(@Param("env") String env, @Param("projects") String[] projects);
}
